package cn.iocoder.yudao.module.VO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.stereotype.Component;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@Schema(description = "学生VO")
@Component
public class StudentVo {
    @Schema(description = "学生ID", example = "1")
    private Long id;

    @NotBlank(message = "学生姓名不能为空")
    @Schema(description = "学生姓名", example = "张三")
    private String name;

    @NotNull(message = "班级ID不能为空")
    @Schema(description = "班级ID", example = "1")
    private Long classId;
}
